package sanrenxing.dayEnd.backRepertoryTotal.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import sanrenxing.dayEnd.backRepertoryTotal.dao.ValuationDao;
import sanrenxing.dayEnd.backRepertoryTotal.domain.Valuation;
import sanrenxing.dayEnd.backRepertoryTotal.service.ValuationService;

import java.util.List;

@Repository("valuationService")
public class ValuationServiceImpl implements ValuationService {
    @Autowired
    private ValuationDao valuationDao;

    /**
     * 拿到证券增值估值
     * @return
     */
    @Override
    public List<Valuation> queryValua() {
        return valuationDao.queryValua();
    }

    @Override
    public void addValuation(Valuation valuation) {
        valuationDao.addValuation(valuation);
    }

    /**
     * 删除证券应收应付库存的估值增值数据
     */
    @Override
    public void delete() {
        valuationDao.delete();
    }
}
